Foxit PDF RDK
FoxitRDKNative.CertificateSecurityHandler Class Reference
Inheritance diagram for FoxitRDKNative.CertificateSecurityHandler:
FoxitRDKNative.SecurityHandler

Public Member Functions

 constructor ()
 Constructor.
 
 Initialize (encrypt_data, encrypt_key)
 Initialize current certificate security handler. More...
 
- Public Member Functions inherited from FoxitRDKNative.SecurityHandler
 constructor ()
 Constructor.
 
 GetSecurityType ()
 Get the encryption type of current security handler. More...
 
 IsEmpty ()
 Check whether current object is empty or not. More...
 

Additional Inherited Members

- Static Public Attributes inherited from FoxitRDKNative.SecurityHandler
static e_CipherAES
 Use AES encryption algorithm, with the key length be 16 bytes (as AES-128) or 32 bytes (as AES-256, only supported in PDF 2.0).
 
static e_CipherNone
 Enumeration for Encryption Algorithm. More...
 
static e_CipherRC4
 Use RC4 encryption algorithm, with the key length between 5 bytes and 16 bytes.
 

Detailed Description

This class represents a certificate security handler, used for certificate encryption.

See also
SecurityHandler

Member Function Documentation

◆ Initialize()

FoxitRDKNative.CertificateSecurityHandler.Initialize ( encrypt_data  ,
encrypt_key   
)

Initialize current certificate security handler.

Parameters
[in]encrypt_dataA certificate encrypt data object. In the encryption data, cipher type should not be SecurityHandler.e_CipherNone.
[in]encrypt_keyThe key for encryption.
For SecurityHandler.e_CipherRC4 cipher, the length of encryption key should be between 5 and 16. For SecurityHandler.e_CipherAES cipher, the length of encryption key should be 16 or 32.
Returns
true means success, while false means failure.